Skip to content

ci: Pinning the server build runs to Ubuntu 22.04 because of Flapdoodle errors#38723

Merged
mohanarpit merged 1 commit intoreleasefrom
chore/fix-ci-ubuntu-22.04
Jan 17, 2025
Merged

ci: Pinning the server build runs to Ubuntu 22.04 because of Flapdoodle errors#38723
mohanarpit merged 1 commit intoreleasefrom
chore/fix-ci-ubuntu-22.04

Conversation

@mohanarpit
Copy link
Member

@mohanarpit mohanarpit commented Jan 17, 2025

Description

Flapdoodle, our Mongo embedded testing library throws errors when running Junit tests on Ubuntu 24.04. This is because of a mismatch of openssl version from Ubuntu 22.04 to Ubuntu 24.04. Hence pinning our CI for server builds to Ubuntu 22.04 for now. Will issue a holistic fix with Flapdoodle upgrade later.

Automation

/ok-to-test tags=""

🔍 Cypress test results

Caution

If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow configurations for server build and integration tests
    • Migrated workflow environments from ubuntu-latest-8-cores to ubuntu-22.04-8core
    • Refined workflow logic for test execution and artifact management

@mohanarpit mohanarpit requested a review from sharat87 as a code owner January 17, 2025 06:10
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 17, 2025

Walkthrough

The pull request focuses on updating the GitHub Actions workflow configurations for Appsmith Server's build and integration tests. The primary changes involve transitioning from ubuntu-latest-8-cores to ubuntu-22.04-8core for the environment, refining test execution logic, and introducing a new step to handle test failure reporting. The modifications aim to improve workflow clarity and efficiency while maintaining core testing functionality.

Changes

File Change Summary
.github/workflows/server-build.yml - Updated runs-on to ubuntu-22.04-8core
- Streamlined test execution logic
- Added step to explicitly set test failure status
.github/workflows/server-integration-tests.yml - Updated runs-on to ubuntu-22.04-8core
- Removed server build artifact download
- Added rts build artifact download
- Reformatted test execution script

Possibly related PRs

Suggested labels

skip-changelog, CI

Suggested reviewers

  • sharat87
  • yatinappsmith

Poem

🤖 Workflows dance, Ubuntu's new stage
Bits and bytes in a CI-powered rage
Tests run swift, no failure can hide
GitHub Actions, our coding pride!
Efficiency sings its melodic refrain 🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added skip-changelog Adding this label to a PR prevents it from being listed in the changelog CI labels Jan 17, 2025
echo "Tests failed, exiting with status 1."
exit 1
fi
if [[ "${{ inputs.is-pg-build }}" == "true" ]]; then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no change here. It's just formatting changes to make it compatible with YML formatting in our code base. Please ignore this.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
.github/workflows/server-build.yml (1)

290-290: Remove trailing whitespace.

There is trailing whitespace at the end of this line.

-              echo "$content" >> "$GITHUB_STEP_SUMMARY"
+              echo "$content" >> "$GITHUB_STEP_SUMMARY"
🧰 Tools
🪛 yamllint (1.35.1)

[error] 290-290: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1963a9a and 6f5433a.

📒 Files selected for processing (2)
  • .github/workflows/server-build.yml (3 hunks)
  • .github/workflows/server-integration-tests.yml (3 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/server-integration-tests.yml

20-20: label "ubuntu-22.04-8core" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

.github/workflows/server-build.yml

54-54: label "ubuntu-22.04-8core" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🪛 yamllint (1.35.1)
.github/workflows/server-build.yml

[error] 290-290: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
.github/workflows/server-integration-tests.yml (1)

96-106: LGTM! Clean test execution setup.

The changes maintain the same functionality while improving code readability through better formatting.

.github/workflows/server-build.yml (2)

206-303: Well-structured test execution and reporting logic.

The changes improve the workflow with:

  • Clear separation of database setup
  • Better handling of test failures and retries
  • Improved test result processing and reporting
🧰 Tools
🪛 yamllint (1.35.1)

[error] 290-290: trailing spaces

(trailing-spaces)


Line range hint 20-20: Verify the impact of pinning to Ubuntu 22.04.

While pinning to Ubuntu 22.04 addresses the Flapdoodle errors, we should:

  1. Fix the invalid runner labels in both workflow files
  2. Document this as a temporary solution
  3. Create a follow-up ticket for upgrading Flapdoodle

Also applies to: 54-54

✅ Verification successful

The Ubuntu 22.04 pin is safe, but runner labels need attention

The Ubuntu 22.04 pin in server-build.yml is an isolated change that won't impact other workflows. However, the invalid runner labels still need to be fixed as mentioned in the original review.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there are any other workflow files using ubuntu-latest
rg -l "ubuntu-latest" .github/workflows/

Length of output: 1556


Script:

#!/bin/bash
# Check for Flapdoodle usage in workflow files
rg -l "flapdoodle" .github/workflows/

# Check for server test patterns in workflow files
rg -l "server.*test|test.*server" .github/workflows/

Length of output: 443

🧰 Tools
🪛 actionlint (1.7.4)

54-54: label "ubuntu-22.04-8core" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

@mohanarpit mohanarpit merged commit 42b8a56 into release Jan 17, 2025
14 checks passed
@mohanarpit mohanarpit deleted the chore/fix-ci-ubuntu-22.04 branch January 17, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI skip-changelog Adding this label to a PR prevents it from being listed in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants